﻿<html dir="LTR"><head><META http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"><title>FTPConnection.InvokeSiteCommand Method</title><xml></xml><link rel="stylesheet" type="text/css" href="MSDN.css"></head><body id="bodyID" class="dtBODY"><div id="nsbanner"><div id="bannerrow1"><table class="bannerparthead" cellspacing="0"><tr id="hdr"><td class="runninghead">An NDoc Documented Class Library</td><td class="product"></td></tr></table></div><div id="TitleRow"><h1 class="dtH1">FTPConnection.InvokeSiteCommand Method </h1></div></div><div id="nstext"><p>
            Invokes the given site command on the server.
            </p><div class="syntax">public virtual <a href="EnterpriseDT.Net.Ftp.FTPReply.html">FTPReply</a> InvokeSiteCommand(<br>   <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">string</a> <i>command</i>,<br>   params <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">string[]</a> <i>arguments</i><br>);</div><h4 class="dtH4">Parameters</h4><dl><dt><i>command</i></dt><dd>Site-specific command to be invoked.</dd><dt><i>arguments</i></dt><dd>Arguments of the command to be invoked.</dd></dl><h4 class="dtH4">Return Value</h4><p>The reply returned by the server.</p><h4 class="dtH4">Remarks</h4><p>
            Site-specific commands are special commands that may be defined by a server.  
            Such commands are defined on a server-by-server basis.
            </p><p>
            For example, a specific FTP server might define a <code>PROCESS</code> site-command which 
            results in another piece of software on the server being directed to perform some
            sort of processing on a particular file.  The command required might be:
            </p><pre class="code">
            	SITE PROCESS file-path
            </pre><p>
            In this case, the site-command would be invoked as follows:
            </p><pre class="code">
            	ftpConnection.InvokeSiteCommand("PROCESS", filePath);
            </pre><h4 class="dtH4">See Also</h4><p><a href="EnterpriseDT.Net.Ftp.FTPConnection.html">FTPConnection Class</a> | <a href="EnterpriseDT.Net.Ftp.html">EnterpriseDT.Net.Ftp Namespace</a></p><object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e" viewastext="true" style="display: none;"><param name="Keyword" value="InvokeSiteCommand method"><param name="Keyword" value="InvokeSiteCommand method, FTPConnection class"><param name="Keyword" value="FTPConnection.InvokeSiteCommand method"></object></div></body></html>